package com.huang.vo;

import java.util.Arrays;

public class PageResult {
    Object data;
    Integer total;
    Integer currentIndex;
    Integer pageTotal;
    Integer lastIndex;
    Integer nextIndex;
    Integer FirstPage;
    Integer LastPage;
    int[] navigatePageNums;

    @Override
    public String toString() {
        return "PageResult{" +
                "data=" + data +
                ", total=" + total +
                ", currentIndex=" + currentIndex +
                ", pageTotal=" + pageTotal +
                ", lastIndex=" + lastIndex +
                ", nextIndex=" + nextIndex +
                ", FirstPage=" + FirstPage +
                ", LastPage=" + LastPage +
                ", navigatePageNums=" + Arrays.toString(navigatePageNums) +
                '}';
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public Integer getCurrentIndex() {
        return currentIndex;
    }

    public void setCurrentIndex(Integer currentIndex) {
        this.currentIndex = currentIndex;
    }

    public Integer getPageTotal() {
        return pageTotal;
    }

    public void setPageTotal(Integer pageTotal) {
        this.pageTotal = pageTotal;
    }

    public Integer getLastIndex() {
        return lastIndex;
    }

    public void setLastIndex(Integer lastIndex) {
        this.lastIndex = lastIndex;
    }

    public Integer getNextIndex() {
        return nextIndex;
    }

    public void setNextIndex(Integer nextIndex) {
        this.nextIndex = nextIndex;
    }

    public Integer getFirstPage() {
        return FirstPage;
    }

    public void setFirstPage(Integer firstPage) {
        FirstPage = firstPage;
    }

    public Integer getLastPage() {
        return LastPage;
    }

    public void setLastPage(Integer lastPage) {
        LastPage = lastPage;
    }

    public int[] getNavigatePageNums() {
        return navigatePageNums;
    }

    public void setNavigatePageNums(int[] navigatePageNums) {
        this.navigatePageNums = navigatePageNums;
    }

    public PageResult() {
    }

    public PageResult(Object data, Integer total, Integer currentIndex, Integer pageTotal, Integer lastIndex, Integer nextIndex, Integer firstPage, Integer lastPage, int[] navigatePageNums) {
        this.data = data;
        this.total = total;
        this.currentIndex = currentIndex;
        this.pageTotal = pageTotal;
        this.lastIndex = lastIndex;
        this.nextIndex = nextIndex;
        FirstPage = firstPage;
        LastPage = lastPage;
        this.navigatePageNums = navigatePageNums;
    }
}
